<style>

.blanktable {
  border: 1px solid black;
}

</style>

<h2>Бланк для регистрации</h2>


<?php

foreach( $topics as $topic_id => $topic )
{
  print "<h3>{$topic['id']}. {$topic['title']}</h3>";
  
  if ( ! count( $topic['members'] ) )
  {
    print '<p>Нет участников.</p>';
  }
  else
  {
    print "<table class='blanktable'>";
    print "<tr>";
    print "<th>ID</th>";
    print "<th>Л</th>";
    print "<th>Ник</th>";
    print "<th>Имя</th>";
    print "<th>Телефон</th>";
    print "<th>Город</th>";
    print "</tr>";
    foreach( $topic['members'] as $member )
    {
      print "<tr>";
      print "<td>{$member['id']}</td>";
      print "<td>{$member['leader']}</td>";
      print "<td>{$member['nickname']}</td>";
      print "<td>{$member['name']}</td>";
      print "<td>{$member['phone']}</td>";
      print "<td>{$member['city']}</td>";
      print "</tr>";
      //<a href='" . URL . "requests/{$request['code']}/'>{$request['voting_title']}</a></br>";
    }
    print "</table>";
  }
  
}